﻿
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Sharp.Domain.Model;
using Sharp.Infrastructure;

namespace Sharp.Domain.PlatformBoundedContext.OrgModule.Aggregates
{
    /// <summary>
    /// Class OrgLevel.
    /// </summary>
    public partial class OrgLevel : AggregateRoot, IStandardEntity, IStandardState
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OrgLevel"/> class.
        /// </summary>
        public OrgLevel()
        {
        }


        /// <summary>
        /// 上级
        /// </summary>
        public System.Guid? ParentId { get; set; }
        /// <summary>
        /// 排序Id
        /// </summary>
        public int OrderIndex
        {
            get;
            set;
        }
        /// <summary>
        /// 名称
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }


        /// <summary>
        /// 添加日期
        /// </summary>
        public System.DateTime? CheckInTime { get; set; }
        /// <summary>
        /// 录入员的id
        /// </summary>
        public System.Guid? CheckInUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public System.DateTime? ModifiTime { get; set; }
        /// <summary>
        /// 修改数据的用户Id
        /// </summary>
        public System.Guid? ModifiedUserId { get; set; }

        /// <summary>
        /// 组织机构
        /// </summary>
        /// <value>The orgs.</value>
        public virtual ICollection<Org> Orgs { get; set; }



        public EntityStateOperate EntityState
        {
            get; set; }
    }
}